package lhdx12;

import java.util.InputMismatchException;
import java.util.Scanner;

public class KeShi {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("输入总课时和课程数：");
        try {
            int a=in.nextInt();
            int b=in.nextInt();
            int  c=a/b;
            if (a>=100){
                System.out.println("平均课时为："+c);
            }else {
                System.out.println("课时太少。");
            }
        }catch (InputMismatchException N){
            System.out.println("输入错误");
        }catch (ArithmeticException A){
           System.out.println("除数不能为0");
        }
    }
}
